package io.xxx.xbutler.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum RobotType {

    WECHAT(0),

    WECOM(1);

    private final int code;

    public static RobotType valueOf(int code) {
        for (RobotType value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }
}
